package com.soda.dao;

import java.util.List;

import com.soda.bean.News;
 
import com.soda.bean.Notice;
import com.soda.util.PageInfo;
import com.soda.util.SelectNewsInfo;

public interface NewsDao {
	//全查
	News showAllNews(int id);
	//条件查询
	List<News> getAllNews(SelectNewsInfo sni, PageInfo pi);
	//分页
	List<News> selectNews(PageInfo pi);
	int getNewsCount(SelectNewsInfo sni);
	//删除
	int deleteById(int id);
	//修改
	int updateNews(int id, int recommend, String neirong);
	//增加
	int addNews(News n);
	//批量删除
	int delAllNews(String[] nids);
	
 
	//详查
	List<News> showNews(int id);
	//导出
	List<News> exportNews(String[] count);
	//修改状态
	int updateStateNews(int newId, int state);


	
}
